<?php

$client = new swoole_client(SWOOLE_SOCK_TCP);
$client->connect("192.168.50.1", 8080, 5) or die("连接失败");
$client->send("hello world") or die("数据发送失败");
$data = $client->rece();
var_dump($data);
$client->close();